package com.example.demo.dao;
//
//import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.Entry.User;
import com.example.demo.Entry.Wc;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface UserDao  {
//    @Select("Select * from user ")
//    @Results(id = "aa",
//            value = {
//                    @Result(property = "name",column="name1",id = true),
//                    @Result(property = "age",column = "age")
//            }
//    )

    User selectAll ();

    Wc selectWcAll();

    List<Wc> selectWcByUserName(String userName);

    @Select(value = " SELECT * FROM user  where user.name1=#{name}")
    @ResultMap(value = "com.example.demo.dao.UserDao.UserRMap")
    User selectUserR(String userName);


}
